local function FindRecursively( path, extension )
	local todo = { "" }
	local t = {}
	for _, folder in pairs( todo ) do
		local files, folders = file.Find( path .. "/" .. folder .. "/*", "GAME" )
		for _, filename in pairs( files ) do
			local full = path .. "/" .. folder .. "/" .. filename
			if ( !extension || string.GetExtensionFromFilename( filename ) == extension ) then
				t[ #t + 1 ] = folder .. filename
			end
		end
		for _, foldername in pairs(folders) do
			todo[ #todo + 1 ] = folder .. foldername .. "/"
		end
	end
	return t
end

for _, filename in pairs( FindRecursively( GM.Folder .. "/content/" ) ) do
	resource.AddFile( filename )
	printd( "Adding to resource: " .. filename )
end

/*
resource.AddFile( "resource/fonts/SF TransRobotics.ttf" )
resource.AddFile( "resource/fonts/zektonbo.ttf" )
*/